Starting on musl port by Arvid Picciani git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@141672 91177308-0d34-0410-b5e6-96231b3b80d8 
diff --git a/include/locale b/include/locale index 9f9996a..aa99ff7 100644 --- a/include/locale +++ b/include/locale 
@@ -3696,7 +3696,7 @@  #if _WIN32  return -1;  #else // _WIN32 - catalog __cat = reinterpret_cast<catalog>(catopen(__nm.c_str(), NL_CAT_LOCALE)); + catalog __cat = (catalog)catopen(__nm.c_str(), NL_CAT_LOCALE);  if (__cat != -1)  __cat = static_cast<catalog>((static_cast<size_t>(__cat) >> 1));  return __cat; @@ -3717,7 +3717,7 @@  __dflt.c_str() + __dflt.size());  if (__c != -1)  __c <<= 1; - nl_catd __cat = reinterpret_cast<nl_catd>(__c); + nl_catd __cat = (nl_catd)__c;  char* __n = catgets(__cat, __set, __msgid, __ndflt.c_str());  string_type __w;  __widen_from_utf8<sizeof(char_type)*__CHAR_BIT__>()(back_inserter(__w), @@ -3733,7 +3733,7 @@  #if !_WIN32  if (__c != -1)  __c <<= 1; - nl_catd __cat = reinterpret_cast<nl_catd>(__c); + nl_catd __cat = (nl_catd)__c;  catclose(__cat);  #endif // !_WIN32  }